package com.example.usercenter.common;

import lombok.Data;

/**
 * 封装统一返回对象
 * @author 米饭好好吃
 */
@Data
public class Result<T> {
    private int code;
    private T data;
    private String message;

    public Result(int code, T data, String message) {
        this.code = code;
        this.data = data;
        this.message = message;
    }
    public Result(int code, T data) {
        this(code, data, "ok");
    }
}
